﻿///***************************************************************
/// 시  스  템 : Updms.Crd.Exe
/// 단위시스템 : CRD
/// 계      층 : Execute Layer (Not Transaction)
/// 프로그램명 : Crd1011m_NT
/// 파  일  명 : Crd1011m_NT.cs
/// 설      명 : 카드결제일
///***************************************************************
/// 수정ID 일자       이름     내용
///---------------------------------------------------------------
/// CH001  2008-07-18 송시명   최초 작성
///***************************************************************
using System.Data;
using System.EnterpriseServices;
using System.Runtime.InteropServices;

using SMFramework.Data;


namespace Updms.Crd.Exe
{
	[ComVisible(true)]
	[Transaction(TransactionOption.NotSupported)]
	[JustInTimeActivation(true)]
	public class Crd1011m_NT : Base.AppFramework.RuleBase
	{
		public Crd1011m_NT()
		{
		}

		#region GetSearchCount
		
		[AutoComplete]
		public int GetSearchCount(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_PAYMNT_DT _dac = new Dac.Crd_Dac_UPDMS_CRD_PAYMNT_DT())
			{
				return _dac.GetSearchCount(lo_dp);
			}
		}
		
		#endregion

		#region SelectProcess
		
		[AutoComplete]
		public DataSet SelectProcess(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_PAYMNT_DT _dac = new Dac.Crd_Dac_UPDMS_CRD_PAYMNT_DT())
			{
				return _dac.SelectProcess(lo_dp);
			}
		}
		
		#endregion

		#region GetPaymntDtList

		[AutoComplete]
		public DataSet GetPaymntDtList(string ls_card_cd)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_PAYMNT_DT _dac = new Dac.Crd_Dac_UPDMS_CRD_PAYMNT_DT())
			{
				return _dac.GetPaymntDtList(ls_card_cd);
			}
		}

		#endregion

		#region GetPaymntDtByBizDt

		[AutoComplete]
		public string GetPaymntDtByBizDt(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_PAYMNT_DT _dac = new Dac.Crd_Dac_UPDMS_CRD_PAYMNT_DT())
			{
				return _dac.GetPaymntDtByBizDt(lo_dp);
			}
		}

		#endregion

		#region GetMinNMaxPaymntDt
		/// <summary>
		/// 카드별로 등록된 처음 결제일과 마지막 결제일을 조회 - 조회날짜 설정시 사용
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetMinNMaxPaymntDt(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_PAYMNT_DT _dac = new Dac.Crd_Dac_UPDMS_CRD_PAYMNT_DT())
			{
				return _dac.GetMinNMaxPaymntDt(lo_dp);
			}
		}

		#endregion

		#region GetMinNMaxBizDt
		/// <summary>
		/// 카드별로 등록된 처음 사용일과 마지막 사용일을 조회
		/// </summary>
		/// <param name="lo_dp"></param>
		/// <returns></returns>
		[AutoComplete]
		public DataSet GetMinNMaxBizDt(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_PAYMNT_DT _dac = new Dac.Crd_Dac_UPDMS_CRD_PAYMNT_DT())
			{
				return _dac.GetMinNMaxBizDt(lo_dp);
			}
		}

		#endregion

	}
}
